Commentators break down Ezra's command into three clear actions for repentance. First, the people must "make confession" to God. Second, they must "do his pleasure," aligning their will with God's commands. Finally, they must "separate yourselves" from the sinful influences, which in this case meant ending the forbidden marriages.