When you're finished knitting, you need to cast off your last row of stitches in order to make an edge that won't unravel. It generally involves passing the final loop of a wale over the loop of an adjacent stitch.