Jerusalem was destroyed only because the Sabbath was desecrated in it

לא חרבה ירושלים אלא על שחיללו בה את השבת
Shiurim in this topic
4707. Traveling on Israeli Ships on Shabbos and the Severity of Public Desecration נסיעה באניות ישראליות בשבת וחומרת חילול שבת בפרהסיא
4596. Shabbat Observance on Israeli Ships and Its Broader Implications שמירת שבת באניות ישראליות והשלכותיה הרחבות