A shotgun wedding is a wedding arranged in response to pregnancy resulting from premarital sex. The phrase comes from the figurative imagining that the relatives of the pregnant bride threaten the reluctant male groom with a shotgun in order to ensure that he marries the woman.