ABSTRACT The objective of this article was to evaluate the relationship between investor attention, both professional and non-professional, and the efficiency of the Brazilian stock market, as measured by the predictability of daily returns. The role of investor attention in the capital market is a controversial issue, since some studies show that it is capable of inducing efficiency, while others point out that it essentially contributes to greater volatility due to behavioral biases. This study contributes to the behavioral finance literature by pioneering the analysis of the effect of investor attention on Brazilian stock prices. Moreover, we found no previous studies that compare the effect of investor attention on market efficiency across investor classes, as measured by access to different financial information providers. The analysis of investor attention, as measured by the volume of searches on the internet, is relevant given the growing abundance of data and digital inclusion. The evidence of an effect of attention on market efficiency contributes to the critique of this classical hypothesis. The methodology consisted of estimating autoregressive models using daily data from 2018 to 2021 on search volume, returns, and transaction volume for Brazilian stocks, including the interaction between returns and search volume, to assess the influence of attention on price dynamics. In this work, we find that in the Brazilian stock market, investor attention contributes to greater market efficiency, as measured by lower predictability of returns, but the most pronounced effect comes from the attention of non-professional investors. Understanding how attention affects the incorporation of information into prices contributes to a critique of the market efficiency hypothesis, as well as allowing for profits to be made by exploiting opportunities based on the level of attention of a particular class of investors.