Why do my lungs hurt when I take a deep breath?

Perhaps serious. There are a variety of things that could cause this. If it just started happening hours or minutes ago and it is getting worse, seek immediate medical attention because it could be a heart attack or a pulmonary embolism. If it has been happening for a longer period of time, it might just be a muscle strain or broken rib.