A subungual hematoma occurs when an injury breaks open blood vessels under the nail, causing blood to collect and become trapped in one spot. Poorly fitting shoes can also cause subungal hematomas, especially if the person is very active. Shoes that are too tight or narrow can put pressure on the toenail, breaking blood vessels