If you and your doctor find out what caused your hives, you can prevent hives by avoiding that cause. But when hives keep coming back and the cause is unknown, you may need to take certain medicines every day to stop this from happening.