The purpose of a blood test before marriage is to screen for any underlying health conditions or diseases that could affect the couple or their future offspring.