Reputation lowers when you break the kingdom law, or break a village law when you are within the deed.
Everybody starts with 100, if you go below 100, your reputation will slowly go back up(at the rate of about 1 point per hour, even if you are offline), unless you do something against the law.
You can check your reputation by doing /reputation while in game