The OCC supervises and examines national banks and federal savings associations to ensure they operate safely and soundly; writes regulations; charters, licenses, and takes enforcement action against banks; and ensures fair treatment of bank customers.