Residency in any medical discipline is a training program, typically lasting about 3 years. The first year of training immediately after medical school is known as the internship or postgraduate year 1.  After completing a residency, the training that students undergo in a subfield or sub-speciality is known as the fellowship.