SAN FRANCISCO — San Francisco has reached a deal with short-term rental platforms Airbnb Inc. and Homeaway.com Inc. to end the companies’ legal challenge to a local ordinance which threatens the companies with steep fines for listing properties not registered with the city.

The companies have agreed to take steps to make sure hosts who use their platforms are complying with a San Francisco law designed to keep owners from converting units for full-time residents into vacation rentals. They’ve also agreed to require that existing users show proof of their registration with the city and to direct new users to a portal to provide the required information to the city. The companies also agreed to provide the city on a monthly basis with listingsto allow the city to check that properties are properly registered.