Existing compressed air energy storage (CAES) facilities use salt dome caverns to store compressed air. On the other hand, other geologic formations, such as hard rock caverns, depleted gas reservoirs, and saline aquifers, are good alternatives. Storage of compressed air in either depleted gas reservoirs or saline aquifers involves two-phase fluid flow in porous media. That is, injection of non- wetting air into saturated porous media initiates a drainage process (i.e., non-wetting fluid displaces presiding wetting fluid), and the withdrawal of compressed air back to the surface to regenerate energy triggers an imbibition process (i.e., wetting fluid reoccupies the pore space). Moreover, the CAES operation is expected to run on a daily cycle, which means the drainage-imbibition process is likely to repeat a huge number of times. In this regard, a thorough understanding of the two-phase fluid flow during the cyclic injection and withdrawal of compressed air is critical to predict the performance of CAES in porous media and to improve its efficiency. In this study, the two-phase fluid flows during repetitive drainage-imbibition cycles are investigated using the microfluidics technique and polydimethylsiloxane (PDMS)-based models. Two different geometries, one with circular solids (Type I) and the other with square solids (Type II), which mimic unconsolidated rock sediment and a fracture network of carbonate rock, were prepared for the study. After a total of ten repetitive drainage-imbibition cycles, it was observed that the occupation efficiency of compressed air for Type I model converged to a certain value at different attempts. In contrast, the occupation efficiency of compressed air for Type II model yielded a pronounced fluctuation, which is partly due to the low residual saturation of non-wetting fluid before the next turn of drainage. Besides, prevalent displacement modes of wetting and non-wetting fluids at the pore-scale were noticeably different for the two-pore structures, which is manifested in the unpredictable pattern of non-wetting fluid flow for Type II over the extended cycles. In conclusion, the geometry of porous media has a great influence on the efficiency of repetitive drainage-imbibition cycles of two-phase fluid flow in porous media, and thus more elaborate study is needed to gain the confidence on the cyclic efficiency of CAES in porous media.