Is O Primo Basílio Based on a True Story?

No, O Primo Basílio is a work of fiction. While the drama film directed by António Lopes Ribeiro and starring António Vilar may incorporate realistic themes, the characters and plot are original creations.