Religion is belief in a god or gods and the activities that are connected with this belief, such as praying or worshipping in a building such as a church or temple.
If you say that someone has got religion, you are referring in a mocking way to the fact that they have suddenly decided to follow a particular religion.