Heat the olive oil in a large frying pan over a medium heat. Add the onions, garlic and bay leaves and cook gently for 5 minutes, stirring occasionally.
Add the peppers to the pan and season with salt and freshly ground black pepper. Add the tomatoes and cook uncovered for 20 minutes, stirring occasionally.