Can anyone perhaps help me with what the meaning of the levirate marriage was (Deuteronomy 25:5 - 10). I've read somewhere that it was an ancient Middle-Eastern custom but then why was it taken up in Scripture?

Johan