You should wear a belt with any pair of pants that has belt loops. This is especially true in formal events when you have your shirt tucked in. If you’re going for a casual event and have your shirt untucked, you can get away with not wearing a belt - even though you might miss the belt’s functionality still.