PORTLAND — Reny’s, the Maine-based department store, will move into the Congress Street space that was vacated by L.L. Bean earlier this fall.

The company will also occupy the space next door that was leased to Olympia Sports, which has announced its plans to leave Congress Street at the end of the month.

The decision means the city will avoid a drawn-out vacancy of a prominent space downtown.

Bean had decided to pull out because the store was marginal and the company had recently opened a new outlet store in Freeport. The Congress Street Bean store closed at the end of October.

Olympia followed suit, concerned that the departure of Bean would mean a drop in foot traffic in the 500 block of Congress Street.

Drew Sigfridson, a broker at CBRE/The Boulos Co., said Reny’s is expected to renovate the 25,800-square-foot space after the first of the year and would likely open for business in March or April.