David built an altar to the Lord there, and offered burnt offerings and peace offerings. So the Lord was entreated for the land, and the plague was removed from Israel.