In Apache Spark, the action is used to bring back the RDD data to the local machine. Its execution is the result of all previously created transformations.