Atenolol is a beta-blocker, and beta-blockers may lower the amount of melatonin your body makes on its own. If you take the two together, melatonin may work differently for you than you'd expect.
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.