Treebank construction is a fundamental resource in natural language processing, leveraging grammatical structures in tree format to ensure accurate sentence interpretation. Treebanks can be created manually or semi-automatically and are categorized into phrase structure treebanks and dependency treebanks. For Thai, notable treebanks include CG Treebank using Categorial Grammar and Suthee’s treebank using dependency grammar. A treebank is a data repository containing natural language sentences with syntactic analysis in tree structures, reflecting grammatical relationships between words or phrases. Key components include original text data, accurate word segmentation, Part-of-Speech tagging with appropriate Thai tag sets, syntactic tree structures, standard annotation guidelines, and data formats. Comparisons with other languages like English (Penn Treebank) and Universal Dependencies highlight unique Thai characteristics such as absence of word spacing, ellipsis of sentence components, and polysemous word usage. This article describes the X-bar theory, which explains internal phrase structures. Thai treebank construction poses challenges due to the language's specific characteristics. The application of X-bar theory to Thai grammar requires adaptation, including handling the absence of clear specifiers, managing nested structures, and accommodating null nodes for omitted elements. Establishing robust annotation standards involves comprehensive guidelines, standardized constituent types and POS tags, validation tools, and diverse annotated examples. Thai treebanks are crucial for advancing NLP technologies, particularly for automatic parsing systems, machine translation improvement, and Thai language education. Beyond technical utility, Thai treebanks serve as valuable linguistic, cultural, and language preservation databases, fostering further research and innovation in Thai computational linguistics.