The Stack Exchange User Guide/How Reputation Is Earned
Reputation on Stack Exchange sites is a quantified measure of a user's place in the community. In some instances reputation can be spent as a currency to enable certain actions.
Reputation is generally earned by asking useful questions and giving useful answers. Reputation is typically lost by doing the inverse.