Ezra's prayer has significance for his people and for us today.
Coming out of Babylonian captivity, the Israelites start rebuilding of God's temple as it was a very significant part of their lives. It was the place they offered worship, sacrificed, and encountered God. Ezra 9 finds a significant prayer of confession.
Ezra 9:1-2 When these things had been done, the Jewish leaders came to me and said, “Many of the people of Israel, and even some of the priests and Levites, have not kept themselves separate from the other peoples living in the land. They have taken up the detestable practices of the Canaanites, Hittites, Perizzites, Jebusites, Ammonites, Moabites, Egyptians, and Amorites. For the men of Israel have married women from these people and have taken them as wives for their sons. So the holy race has become polluted by these mixed marriages. Worse yet, the leaders and officials have led the way in this outrage.”
Israel was living under a different covenant than we have today. Israel was bound to the law that gave direction for the covering of their sin and how to engage their God. Jesus paid the ultimate sacrifice and established a new covenant for us today. This grace of Jesus made salvation available to anyone who calls on the name of the Lord.