A function is a way of chunking a group of commands together into a block of instruction that can be referenced by another part of your program.