To close a stream, you use the fclose() function. This function takes one argument: the stream to close. It's important to always close your streams when you're done with them to free up system resources.