In 1888 they moved to Prague. They were not satisfied with their first two apartments. But, after five years they finally found the perfect one on Ressl street, close to today's Jirasek square, where a memorial to Alois is located. They lived in this apartment from 1903 until his death in 1930. He continued in his career as a high-school teacher in Prague as well as writing literary works. Living in Prague gave him the opportunity to meet members of the artistic and scientific world. He started meeting Mikoláš Aleš with whom he shared the same artistic ideas and plans. He became friends with Zikmund Winter, K.V. Rais, but also with the younger generation including Josef Svatopluk Machar and Zdeněk Nejedlý. All of his dramas were written in Prague. On July 3, 1908, he was elected a member of Czech Academy of Arts and Sciences.