An artificial cornea is fabricated by separately culturing live stromal cells, live corneal endothelial cells (CECs) and live corneal epithelial cells (CEpCs), and 3D bioprinting separate stromal, CEC and CEpC layers to encapsulate the cells into separate hydrogel nanomeshes. The CEC layer is attached to a first side of the stromal layer and the CEpC layer to a second side of the stromal layer to define the artificial cornea.