Peter had denied Jesus three times before the crucifixion. Here Jesus asks him three times if he loves him. Jesus publically gives Peter the assignment of "feeding my sheep".