Put olive oil in a pan over medium heat, add the onion very chopped. With the medium low heat we leave until completely poached.
Add the chopped tomato, basil and salt, if we want this is the time to raise the fire a little more and so we accelerate the process. Once the tomato liquid has been absorbed, lower the heat, stir and let it do about 20 minutes, until it acquires the desired texture.