How do I switch sounds after an event and vice versa?

Simply put, I would like to switch the background music when fighting enemies and switch it back when all the enemies are all dead basically.