Inspired by the author's own children, who had been schoolboys at the time, the novel is set during the Italian unification, and includes several patriotic themes through an investigation of social issues such as poverty.