Yes, it is illegal in Texas to leave your car running while unattended. According to Texas Transportation Code § 545.404, leaving a vehicle unattended without stopping the engine, locking the ignition, and removing the key violates the law. This regulation aims to prevent vehicle theft and reduce the risk of accidents.