Ingrown toenails can be painful and may also lead to infection. You can treat an ingrown nail by soaking it in a tub of warm, soapy water. Then apply antibacterial ointment and a bandage.