A toenail that is green is usually a sign of a bacterial infection of the nail.  Infection usually begins after nail becomes loose creating an environment underneath that is great for bacteria to thrive.  Evaluation by a doctor is important to prevent worsening of infection.