A compound is considered organic if it contains carbon as a primary component.
While some organic compounds may contain other elements like hydrogen, oxygen, nitrogen, phosphorus, sulfur, and halogens, the presence of carbon is what defines a compound as organic.