Academic flow is one of the important aspects required to support learning activities. It is known that academic flow in students occurs more often when they are with friends than when they are alone. Therefore, this study aims to investigate the relationship between peer attachment and academic flow in senior high school students in Martapura City. The method employed in this study was the quantitative method with the correlational type. The subjects were 230 senior high school students in Martapura City who were selected using the cluster random sampling technique. The research instruments consisted of the Flow Inventory for Student (LIS) for the academic flow variable and the Inventory of Parent and Peer Attachment (IPPA) for the peer attachment variable. Data analysis consisted of the classical assumption test and hypothesis testing with the product moment correlation test through SPSS version 26. The results of hypothesis testing showed the value of r = 0.298 with a significance level of 0.000 (p 0.05), indicating that there was a significant positive relationship between peer attachment and academic flow in senior high school students in Martapura City.Keywords: academic flow, peer attachment, senior high students