Continuously ringing

At 4:30 am our ring doorbell started continuously ringing. We had to take it off the wall and unplug the wired doorbell inside the house. What caused this and how do you fix it?