Syntax errors occur from incorrect use of the programming language. They occur when you do such things as mistype a keyword or forget to close a multiline command (like forgetting End If after an If statement). The result is an error during compilation, forcing you to go through your code and find where the error exists.