The content of this paper focuses/shed light on the effects of X (X = S in P1 and X = O in P2) in C
11
H
7
NSX and R (R = H in P3, R = OCH
3
in P4, and R = Cl in P5) in C
18
H
9
ON
2
S
2
-R on structural features and band gaps of the polythiophenes containing benzo[
d
]thiazole and benzo[
d
]oxazole by the Density Function Theory (DFT) method/calculation. The structural features including the electronic structure lattice constant (a), shape, total energy (E
tot
) per cell, and link length (r), are measured via band gap (E
g
) prediction with the package of country density (PDOS) and total country density (DOS) of material studio software. The results obtained showed that the link angle and the link length between atoms were not changed significantly while the E
tot
was decreased from E
tot
= – 1904 eV (in P1) to E
tot
= – 2548 eV (in P2) when replacing O with S; and the E
tot
of P3 was decreased from E
tot
= – 3348 eV (in P3) when replacing OCH
3
, Cl on H of P3 corresponding to E
tot
= – 3575 eV (P4), – 4264 eV (P5). Similarly, when replacing O in P1 with – S to form P2, the E
g
of P1 was dropped from E
g
= 0.621 eV to E
g
= 0.239 eV for P2. The E
g
of P3, P4, and P5 is E
g
= 0.006 eV, 0.064 eV, and 0.0645 eV, respectively. When a benzo[
d
]thiazole was added in P1 (changing into P3), the E
g
was extremely strongly decreased, nearly 100 times (from E
g
= 0.621 eV to E
g
= 0.006 eV). The obtained results serve as a basis for future experimental work and used to fabricate smart electronic device.