Moses said … if a man dies.This law, called levirate marriage, was based on Deuteronomy 25:5-10, but was not compulsory. This was the basis for the marriage of Boaz and Ruth (Ruth 3-4). It was designed to provide a home and protection for the widow.