This means the people of Israel will love and be faithful to Yahweh just as a wife is to a husband.
"Baal" means "master" and also refers to the false god that the Canaanites worship.