Heat oil in a large skillet over medium heat; add garlic and cook, stirring, until tender, about 2 minutes. Add tomatoes and season with salt and pepper. Mash the tomatoes with a potato masher or wooden spoon and simmer until the sauce has thickened, 15 to 20 minutes. Stir in basil. Taste and adjust seasonings.