Organ-on-a-chip technology tries to mimic the complexity of native tissues in vitro. Important progress has recently been made in using this technology to study the gut with and without microbiota. These in vitro models can serve as an alternative to animal models for studying physiology, pathology, and pharmacology. While these models have greater physiological relevance than two-dimensional (2D) cell systems in vitro, endocrine and immunological functions in gut-on-a-chip models are still poorly represented. Furthermore, the construction of complex models, in which different cell types and structures interact, remains a challenge. Generally, gut-on-a-chip models have the potential to advance our understanding of the basic interactions found within the gut and lay the foundation for future applications in understanding pathophysiology, developing drugs, and personalizing medical treatments.