If it affects the ribs, ankylosing spondylitis may make it difficult to breathe. In rare cases, ankylosing spondylitis can cause scarring and inflammation on the heart muscle and aorta. This can lead to heart problems.