I was recently thinking about this, and I was actually very confused while talking about it with a friend. When thinking of the 1700s, I can imagine swords being used, but past that, broadly, I imagine there was no use. Would citizens be able to have swords in the 1890s? Were they even made anymore?
The last part, where they even made anymore, can be checked by looking in sword-maker's catalogs. A Weyersberg, Kirschbaum & Cie. (WKC, a major Solingen sword-maker, still making swords today) catalog from 1892 or 1893 lists over 100 different types of swords. Most are military swords for the various German states, and there are military swords for other countries, including Greece, Turkey, Britain, Denmark, USA, Brazil, Mexico, and others). In addition to these military swords, there are court swords, diplomatic swords, police swords, theatrical swords, fraternal swords (mostly for the US market - swords for the Knights Templar, Knights of Pythias, Oddfellows, and others), and fencing swords.
What were these swords for?
Armies of the world used swords as dress items for officers - as a sign of rank and authority, rather than for fighting (some were capable of being used for fighting, and others marginally capable at best).
Armies still issued swords to cavalry units with the intent and expectation that they would be used in battle. New cavalry swords were being designed into the 20th century, with the British 1908 cavalry sword and the US M1913 "Patton" sword being notably different from earlier designs. In the early 20th century, there were thoughts that modern firepower on the battlefield had made fighting on horseback, and therefore the cavalry sword, obsolete. For example, Australia entered WW1 with no cavalry, its mounted troops (the Australian Light Horse) being a species of mounted infantry (who would fight dismounted). Following the successful charge of the Light Horse at Beersheba in Palestine (during which they would liked to have had swords), the conversion of the Light Horse to cavalry began, and by the end of the war, about half of the Light Horse had become sword-wielding cavalry. (The lance also continued in cavalry service into WW1.) The sword as a cavalry weapon was made obsolete by mechanisation (which slowly eliminated horsed cavalry - the new "cavalry" used armoured cars and tanks).
Swords were still issued as military sidearms to non-cavalry. Sometimes, these were intended to primarily serve as machetes, etc., but some were purely weapons, such as the Welsh trench sword: https://collections.royalarmouries.org/first-world-war/type/rac-narrative-134.html
Police forces still used swords as both sidearms and signs of authority and rank. This continued into the mid-20th century.
Swords were, in some places, still used for duelling. For example, Olympic gold medalist Aldo Nadi - one of the great fencers of the time - fought a duel in 1924 (some further info and a photo here). Duels were fought with swords in France as late as 1967. A remnant of duelling survives in the German practice of Mensur, duel-like fighting with sharp swords (and some safety equipment to prevent serious damage).
Swords were used as ceremonial items by various fraternal organisations.
Swords were collected, and used as decorative items. Some of this consisted of antique swords, but new swords (both overtly new swords, and newly-made fake "antiques") were made for this purpose.