Puffy eyes are often associated with a black eye, allergies, bumps or inflammation on your eyelids, sores on your cornea or infections like pink eye. The swelling usually goes away on its own. In rare cases, puffy eyes may be a sign of thyroid problems or cancer. Consult your ophthalmologist immediately if the swelling causes trouble with your vision or lasts more than 24 hours.