The ubiquitous sensors have accelerated the realization of Internet of Things (IoT) but also raised challenges to the current overcrowding radio frequency (RF) based communications. The optical wireless communications (OWC) which utilizes the resourceful optic bandwidth can well solve the spectrum crisis and be an appealing complementary solution to the IoT applications. However, the additional direct current (DC) power supply and complicated modulating and power management circuits may limit the large-scale deployment of OWC systems. In this paper, we proposed the self-powered OWC driven by triboelectric nanogenerator (TENG). By integration with TENG devices, the light-emitting diode (LED) could be directly transformed into a wireless transmitter which conveys the information associated with mechanical stimuli without additional power supply. With the customized TENG devices and the help of advanced image processing and machine learning techniques, three demonstrations with functions of remote control, pressure sensing, and security authentication, were implemented in the laboratory environment. The concept and results in this paper may greatly broaden the application of IoT through the integration of OWC and TENG.