According to companies that make aluminum foil, it can be used in the microwave to cook and reheat food if you use fresh, uncrinkled foil, if you do NOT completely cover the food, and if you keep it at least one inch away from the sides and top. If you have a metal turntable or metal shelves in your microwave, you cannot use foil. If you're heating a prepackaged meal, look for a label or warning that says it is safe, or it is NOT safe, to heat in a microwave. Many years ago, I worked 3rd shift at a 24-hour store near a university. Almost every night, a drunk college student would put a foil wrapped burrito in the microwave and I would have to sprint and pull the burrito out before it started a fire. I just read a book on all the foods you can make in a microwave. My gas stove died and my landlord doesn't provide appliances (the previous tenants left the stove behind). So, I am using a 2-burner hot plate and my 1000 watt microwave for all my cooking. Aluminum foil actually helps with some recipes. For example, you should place flat sheets over the edges of a bread pan so that the sides of the loaf or cake or casserole, etc. don't cook faster than the center of the food. BTW, throwing several scrunched up balls of foil in your microwave violates all the safety measures I mentioned and is a great way to ruin your microwave and possible set your kitchen on fire.
Evidently your knowledge of how microwaves work should be reviewed. The problem with putting metals inside the oven is the induction of electricity in these materials. If, instead of making little balls of aluminum, you made a ring, you would see a nice pyrotechnic show. An aluminum ring acts as if it were a single-turn, short-circuited coil. The voltage induced in the ring is such that the current flows with such intensity that it sparks and even melts the aluminum. It is this kind of induction that causes a gold necklace or any metal necklace to melt around a person's neck when lightning strikes near them, without them being burned themselves. The necklace also acts as a single-turn, short-circuited coil. In this case it is the variation in the lightning's magnetic field that does the job. This is why the piece of aluminum foil did not suffer any influence from the microwaves. Neither did the balls. The only problem was the sparking caused by the proximity of the balls to the metallic surface of the oven. Luckily, the magnetron (the valve that generates the microwaves) was not damaged, due to the lack of charge to absorb the microwaves generated.
BRO I WAS HEATING UP MY FOOD THEN EVERYTIEM I LOOKED AT THE MICROWAVE I SEE A SPARK (AT SCHOOL BTW) I was likemaybe I imagined it but no so I got scared and took it out
I had some cooked veggies freez so that i could just warm them up and have a quick meal. But after 5 seconds putting it in it made some sparks. I literally was like and turned it off instantly.