The Apply button applies the changes to the settings that have been made, but does not close the dialog box. The OK button also applies the changes to the settings, but in addition closes the dialog box.
Apply is useful if you are trying out different settings and don't want to have to keep re-opening the dialog box.