Metoprolol is a beta-blocker, and beta-blockers may lower the amount of melatonin your body makes naturally. If you take the two together, melatonin may not work as well for you.
These medicines are often taken together with some care. Your doctor may change a dose, space them apart or check on you more often. Make sure your doctor and pharmacist know you take both.