The 'finally' block executes code after try-catch, for cleanup.
A 'finally' block is used to execute code after a 'try' and optional 'catch' block, regardless of whether an exception was thrown or not. This is especially useful for releasing resources such as file handles or database connections. For example, closing a file stream should be done in a 'finally' block to ensure it's closed even if an exception occurs.