In this study, we aimed to assess the hospital course, outcomes after hospitalization, and predictors of outcomes in patients with ankylosing spondylitis (AS). We included 1403 patients with AS between 2016 and 2021 who were identified using International Classification of Disease (ICD) codes from a large for-profit healthcare system database. Demographics and clinical characteristics were compared between those who had a favorable outcome, defined as being discharged to home without readmission within 3 months of discharge, versus those who had an unfavorable outcome. A stepwise logistic regression was used to identify demographic and clinical characteristics associated with home discharge and readmission. The mean age for all AS patients was 56.06 ± 17.01 years, which was younger in the favorable outcome group, and 82.47% of patients were discharged to home after the average length of stay of 3.72 ± 4.09 days, also shorter in the favorable outcome group. Of 1403 patients, 37.56% were readmitted within 3 months of discharge, at a lower rate in the group with home discharge. Opioids were the most commonly used medication during hospitalization (67.07%), prescribed at a lower rate in the favorable outcome group. Medical coverage by Medicare and Medicaid, fall at admission, hospital-acquired anemia, steroid, acetaminophen, muscle relaxant use, and an increased dose of morphine milligram equivalent at discharge were significantly associated with decreased odds of home discharge. Surgical procedures during admission, gastrointestinal complications, discharge to inpatient rehabilitation units, and use of benzodiazepine were associated with an increased risk of readmission within 3 months. Recognizing factors that put patients with AS at risk of unfavorable outcomes is useful information to improve patient care during hospitalization.