Recent research has highlighted the essential role of the microbiome in maintaining skeletal muscle physiology. The microbiota influences muscle health by regulating lipid metabolism, protein synthesis, and insulin sensitivity. However, metabolic disturbances such as obesity can lead to dysbiosis, impairing muscle function. Time-restricted feeding (TRF) has been shown to mitigate obesity-related muscle dysfunction, but its effects on restoring healthy microbiomes remain poorly understood. This study utilizes 16S microbiome analysis and bacterial supplementation to investigate the bacterial communities influenced by TRF that may benefit skeletal muscle physiology. In wild-type and obese Drosophila models (axenic models devoid of natural microbial communities), the absence of microbiota influence muscle performance and metabolism differently. Specifically, axenic wild-type Drosophila exhibited reduced muscle performance, higher glucose levels, insulin resistance, ectopic lipid accumulation, and decreased ATP levels. Interestingly, in obese Drosophila (induced by a high-fat diet or predisposed obesity mutant Sk2), the absence of microbiota improved muscle performance, lowered glucose levels, reduced insulin resistance, and increased ATP levels. TRF was found to modulate microbiota composition, notably increasing Acetobacter pasteurianus (AP) and decreasing Staphylococcus aureus (SA) in both obesity models. Supplementation with AP improved muscle performance and reduced glucose and insulin resistance, while SA supplementation had the opposite effect. This study provides novel insights into the complex interactions between TRF, microbiota, and skeletal muscle physiology in different Drosophila models.