Background: Potential risk factors for major adverse cardiovascular events (MACE) in patients with ankylosing spondylitis (AS) requiring medical therapy should be investigated. Methods: We identified newly diagnosed AS patients without previous MACE from 2004 to 2012 using the National Health Insurance Research Database, matched MACE cases with non-MACE controls at a 1:4 ratio for age, gender, AS duration, and index date, and included 947 AS patients with MACE and 3896 matched controls for final analyses. By using conditional logistic regression analyses, we examined the associations of MACE with low income, urbanisation, comorbidities, common extra-articular manifestations (EAM), and medications, including nonsteroidal anti-inflammatory drugs (NSAID) of three categories (traditional NSAIDs, selective cyclooxygenase-2 inhibitors (COX-2i), and preferential COX-2is) with their annual cumulative defined daily dose (cDDD) within a year before MACE development. Results: MACE development was associated with the use of selective COX-2is (especially with annual cDDD > 132) and corticosteroids, residence in rural regions, and well-known associated comorbidities, but not with the use of traditional NSAIDs, preferential COX-2i, biologics, methotrexate, sulfasalazine, and common EAMs. Conclusions: The risk factors of MACE in newly diagnosed AS patients include residence in rural regions, well-known associated comorbidities, and the use of corticosteroids and selective COX-2is. A major limitation was the lack of information on individual lifestyle patterns and disease activity.