To assess variables associated with the occurrence of atrial fibrillation (AF) and the relation of AF with short- and long-term outcomes and with other in-hospital complications in patients with acute coronary syndromes (ACS) with and without ST-segment elevation.