Based on my limited knowledge, I believe that
gravity has been around since the beginning of
our universe. It was one of the products of
Big Bang in addition to everything else that
we see today. I'm sorry that my answer is really
short, but I hope I answered your question. Good
luck with your studies!