A ho trai (Thai: หอไตร) is the library of a Thai Buddhist temple.
A ho trai can come in different shapes and sizes.
For many centuries, the sacred Tripitaka scriptures had been written on palm leaves. To preserve the scriptures against humidity and against termites, the library was often built on columns to raise the storage from the ground. Bricks were preferably used in constructions to battle termites. Sometimes the ho trai would be built, especially for this reason, above man-made ponds.