Press SAUTE on Instant Pot and when hot add the ground beef. Break apart and cook until browned, about 5 minutes.
Add onions and garlic and cook an additional 3-5 minutes until onions are translucent. Press the CANCEL button.
Break spaghetti in half and place in layers on top of ground beef mixture in a criss cross pattern. This help pasta from clumping together while cooking.
Add in diced tomatoes, basil, salt, and pepper.
Add pasta sauce and then refill jar with water (24 oz) and add this into the Instant Pot too, making sure that all spaghetti is covered by liquid!
Lock lid, seal valve, and press the MANUAL button. Adjust the time to 8 minutes.
When pressure cooker is done cooking do a quick release by carefully opening the steam valve.
Stir spaghetti, meat, and sauce together.
Enjoy!
Recipe by Smashed Peas & Carrots at https://smashedpeasandcarrots.com/instant-pot-spaghetti/