Take off the negative wire first, which is usually black, then remove the positive wire, which is often red. When connecting the new battery, follow the rule in reverse order: connect the positive first, then the negative.