The invention relates to a method of treating a viral infection caused by or associated with SARS-CoV-2 in a subject, the method comprising administering to the subject by inhalation intraorally and/or intranasally a therapeutically effective amount of a formulation comprising niclosamide, or a pharmaceutically acceptable salt thereof, and a cyclodextrin.