---
title: stop (SparkSession)
description: "SparkSession.stop method in PySpark: Stops the underlying SparkContext."
canonical_url: https://docs.databricks.com/aws/en/pyspark/reference/classes/sparksession/stop
---

# stop (SparkSession)

Stops the underlying `SparkContext`.

## Syntax

```
stop()
```

## Returns

`None`

## Examples

```python
spark.stop()
```
