With hotel companies feeling the competition from the surging home-share industry led by Airbnb, Marriott International has decided if you can’t beat them, join them.

The company, whose brands span from the bargain Courtyard by Marriott to the cosseting Ritz Carlton, is expanding a home-sharing experiment into a full-fledged division that will rent you a St. Barts villa, a Lake Tahoe mountain home or an Irish castle.

The company is betting big on a market where other hotel companies have yet to succeed. The new Homes & Villas by Marriott International will offer 2,000 luxury properties worldwide, ranging from a one-bedroom home for $200 a night to that castle in Ireland for $10,000 a night.

The new division expands on an experiment last year that offered 500 homes in Europe.

“The demand numbers are making hotel companies rethink who they fundamentally are,” said Makarand Mody, an assistant professor of hospitality marketing in the School of Hospitality Administration at Boston University.