A hammertoe is when your second, third, or fourth toe bends at the middle joint, creating a hammer-like appearance. It can come from a muscle imbalance, but it can also be brought on by wearing ill-fitting shoes.
Your doctor will likely recommend you wear shoes with a wide, deep toe bed. She may also give you exercises to stretch your toe muscles. If you still have problems, you can talk to your doctor about surgery.