In Megillat Ruth there is a meeting between the House of Yehuda and the family of Lot. he punishment exacted of Yehuda is similar to that which befalls both Lot and Elimelekh. The tie that binds these cases is that in all three stories there is almost a total loss of family, but at the last minute a solution is found through the act of yibbum. 

 The theme uniting the three is the resurrection of the name of the dead on his property. This is redemption, and this is the goal of the House of David – to reestablish the People of Israel on its land.

Courtesy of the Virtual Beit Midrash, Yeshivat Har Etzion