Mexiletine is a medication primarily used as an antiarrhythmic agent to treat irregular heartbeats. It belongs to the class of sodium channel blockers and is structurally similar to lidocaine. Mexiletine is often administered orally for the management of ventricular arrhythmias.