Unplug the garage opener and remove the battery compartment cover. Pull the battery out, disconnect the wires, connect them to the new battery, and then put it back in.